\(\int x^2 \arccos (a x) \, dx\) [3]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 8, antiderivative size = 54 \[ \int x^2 \arccos (a x) \, dx=-\frac {\sqrt {1-a^2 x^2}}{3 a^3}+\frac {\left (1-a^2 x^2\right )^{3/2}}{9 a^3}+\frac {1}{3} x^3 \arccos (a x) \]

[Out]

1/9*(-a^2*x^2+1)^(3/2)/a^3+1/3*x^3*arccos(a*x)-1/3*(-a^2*x^2+1)^(1/2)/a^3

Rubi [A] (verified)

Time = 0.02 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {4724, 272, 45} \[ \int x^2 \arccos (a x) \, dx=\frac {\left (1-a^2 x^2\right )^{3/2}}{9 a^3}-\frac {\sqrt {1-a^2 x^2}}{3 a^3}+\frac {1}{3} x^3 \arccos (a x) \]

[In]

Int[x^2*ArcCos[a*x],x]

[Out]

-1/3*Sqrt[1 - a^2*x^2]/a^3 + (1 - a^2*x^2)^(3/2)/(9*a^3) + (x^3*ArcCos[a*x])/3

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 272

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 4724

Int[((a_.) + ArcCos[(c_.)*(x_)]*(b_.))^(n_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*ArcCo
s[c*x])^n/(d*(m + 1))), x] + Dist[b*c*(n/(d*(m + 1))), Int[(d*x)^(m + 1)*((a + b*ArcCos[c*x])^(n - 1)/Sqrt[1 -
 c^2*x^2]), x], x] /; FreeQ[{a, b, c, d, m}, x] && IGtQ[n, 0] && NeQ[m, -1]

Rubi steps \begin{align*} \text {integral}& = \frac {1}{3} x^3 \arccos (a x)+\frac {1}{3} a \int \frac {x^3}{\sqrt {1-a^2 x^2}} \, dx \\ & = \frac {1}{3} x^3 \arccos (a x)+\frac {1}{6} a \text {Subst}\left (\int \frac {x}{\sqrt {1-a^2 x}} \, dx,x,x^2\right ) \\ & = \frac {1}{3} x^3 \arccos (a x)+\frac {1}{6} a \text {Subst}\left (\int \left (\frac {1}{a^2 \sqrt {1-a^2 x}}-\frac {\sqrt {1-a^2 x}}{a^2}\right ) \, dx,x,x^2\right ) \\ & = -\frac {\sqrt {1-a^2 x^2}}{3 a^3}+\frac {\left (1-a^2 x^2\right )^{3/2}}{9 a^3}+\frac {1}{3} x^3 \arccos (a x) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.02 (sec) , antiderivative size = 42, normalized size of antiderivative = 0.78 \[ \int x^2 \arccos (a x) \, dx=-\frac {\sqrt {1-a^2 x^2} \left (2+a^2 x^2\right )}{9 a^3}+\frac {1}{3} x^3 \arccos (a x) \]

[In]

Integrate[x^2*ArcCos[a*x],x]

[Out]

-1/9*(Sqrt[1 - a^2*x^2]*(2 + a^2*x^2))/a^3 + (x^3*ArcCos[a*x])/3

Maple [A] (verified)

Time = 0.07 (sec) , antiderivative size = 52, normalized size of antiderivative = 0.96

method result size
derivativedivides \(\frac {\frac {a^{3} x^{3} \arccos \left (a x \right )}{3}-\frac {a^{2} x^{2} \sqrt {-a^{2} x^{2}+1}}{9}-\frac {2 \sqrt {-a^{2} x^{2}+1}}{9}}{a^{3}}\) \(52\)
default \(\frac {\frac {a^{3} x^{3} \arccos \left (a x \right )}{3}-\frac {a^{2} x^{2} \sqrt {-a^{2} x^{2}+1}}{9}-\frac {2 \sqrt {-a^{2} x^{2}+1}}{9}}{a^{3}}\) \(52\)
parts \(\frac {x^{3} \arccos \left (a x \right )}{3}+\frac {a \left (-\frac {x^{2} \sqrt {-a^{2} x^{2}+1}}{3 a^{2}}-\frac {2 \sqrt {-a^{2} x^{2}+1}}{3 a^{4}}\right )}{3}\) \(52\)

[In]

int(x^2*arccos(a*x),x,method=_RETURNVERBOSE)

[Out]

1/a^3*(1/3*a^3*x^3*arccos(a*x)-1/9*a^2*x^2*(-a^2*x^2+1)^(1/2)-2/9*(-a^2*x^2+1)^(1/2))

Fricas [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 41, normalized size of antiderivative = 0.76 \[ \int x^2 \arccos (a x) \, dx=\frac {3 \, a^{3} x^{3} \arccos \left (a x\right ) - {\left (a^{2} x^{2} + 2\right )} \sqrt {-a^{2} x^{2} + 1}}{9 \, a^{3}} \]

[In]

integrate(x^2*arccos(a*x),x, algorithm="fricas")

[Out]

1/9*(3*a^3*x^3*arccos(a*x) - (a^2*x^2 + 2)*sqrt(-a^2*x^2 + 1))/a^3

Sympy [A] (verification not implemented)

Time = 0.21 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.98 \[ \int x^2 \arccos (a x) \, dx=\begin {cases} \frac {x^{3} \operatorname {acos}{\left (a x \right )}}{3} - \frac {x^{2} \sqrt {- a^{2} x^{2} + 1}}{9 a} - \frac {2 \sqrt {- a^{2} x^{2} + 1}}{9 a^{3}} & \text {for}\: a \neq 0 \\\frac {\pi x^{3}}{6} & \text {otherwise} \end {cases} \]

[In]

integrate(x**2*acos(a*x),x)

[Out]

Piecewise((x**3*acos(a*x)/3 - x**2*sqrt(-a**2*x**2 + 1)/(9*a) - 2*sqrt(-a**2*x**2 + 1)/(9*a**3), Ne(a, 0)), (p
i*x**3/6, True))

Maxima [A] (verification not implemented)

none

Time = 0.30 (sec) , antiderivative size = 50, normalized size of antiderivative = 0.93 \[ \int x^2 \arccos (a x) \, dx=\frac {1}{3} \, x^{3} \arccos \left (a x\right ) - \frac {1}{9} \, a {\left (\frac {\sqrt {-a^{2} x^{2} + 1} x^{2}}{a^{2}} + \frac {2 \, \sqrt {-a^{2} x^{2} + 1}}{a^{4}}\right )} \]

[In]

integrate(x^2*arccos(a*x),x, algorithm="maxima")

[Out]

1/3*x^3*arccos(a*x) - 1/9*a*(sqrt(-a^2*x^2 + 1)*x^2/a^2 + 2*sqrt(-a^2*x^2 + 1)/a^4)

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.87 \[ \int x^2 \arccos (a x) \, dx=\frac {1}{3} \, x^{3} \arccos \left (a x\right ) - \frac {\sqrt {-a^{2} x^{2} + 1} x^{2}}{9 \, a} - \frac {2 \, \sqrt {-a^{2} x^{2} + 1}}{9 \, a^{3}} \]

[In]

integrate(x^2*arccos(a*x),x, algorithm="giac")

[Out]

1/3*x^3*arccos(a*x) - 1/9*sqrt(-a^2*x^2 + 1)*x^2/a - 2/9*sqrt(-a^2*x^2 + 1)/a^3

Mupad [F(-1)]

Timed out. \[ \int x^2 \arccos (a x) \, dx=\left \{\begin {array}{cl} \frac {x^3\,\mathrm {acos}\left (a\,x\right )}{3}-\frac {\sqrt {\frac {1}{a^2}-x^2}\,\left (\frac {2}{a^2}+x^2\right )}{9} & \text {\ if\ \ }0<a\\ \int x^2\,\mathrm {acos}\left (a\,x\right ) \,d x & \text {\ if\ \ }\neg 0<a \end {array}\right . \]

[In]

int(x^2*acos(a*x),x)

[Out]

piecewise(0 < a, - ((1/a^2 - x^2)^(1/2)*(2/a^2 + x^2))/9 + (x^3*acos(a*x))/3, ~0 < a, int(x^2*acos(a*x), x))